<?php 
require '../../../../zb_system/function/c_system_base.php';
require '../../../../zb_system/function/c_system_admin.php';
$zbp->Load();
$action='root';
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}
if (!$zbp->CheckPlugin('aymFreeFour')) {$zbp->ShowError(48);die();}
$blogtitle=$zbp->theme.'主题配置->联系信息';
require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';
if(isset($_POST['Forum'])){
if (function_exists('CheckIsRefererValid')) CheckIsRefererValid();
foreach($_POST['Forum'] as $key=>$val){
	$zbp->Config('aymFreeFour')->$key = $val;
}
$zbp->SaveConfig('aymFreeFour');
$zbp->ShowHint('good');
}
?>
<div id="divMain">
	<div class="divHeader"><?php echo $blogtitle;?></div>
	<div class="SubMenu"><?php aymFreeFour_SubMenu(4);?></div>
	<div id="divMain2" class="settings">		
		<form id="form1" name="form1" method="post">	
			<table width="100%" cellspacing='0' cellpadding='0' class="tableBorder">
				<tr>
					<th width='20%'>设置项</th>
					<th width='50%'>设置内容</th>
					<th width='30%'>描述</th>
				</tr>
				<tr>
					<td>
						<label for="boxFirst">列表广告</label>
					</td>
					<td>
						<textarea name='Forum[boxFirst]' class="text"><?php echo htmlspecialchars($zbp->Config('aymFreeFour')->boxFirst);?></textarea>
					</td>
					<td>
						<p>文章列表第一篇文章下广告，广告尺寸宽最大840px，高不限制。</p>
					</td>
				</tr>
				<tr>
					<td>
						<label for="postStart">文章开头广告</label>
					</td>
					<td><p align="left"><textarea name='Forum[postStart]' class="text"><?php echo htmlspecialchars($zbp->Config('aymFreeFour')->postStart);?></textarea></p></td>
					<td><p>广告尺寸宽最大840px，高不限制。</p></td>
				</tr>
				<tr>
					<td>
						<label for="postBtm">文章末尾广告</label>
					</td>
					<td>
						<textarea name='Forum[postBtm]' class="text"><?php echo htmlspecialchars($zbp->Config('aymFreeFour')->postBtm);?></textarea>
					</td>
					<td>
						<p>广告尺寸宽最大840px，高不限制。</p>
					</td>
				</tr>
				
			</table>
			
			<?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?>
			<div class="clear"></div>
			<div class="submit">
				<input name="" type="Submit" class="button" value="保存"/>
			</div>
		</form>
	</div>
</div>
<?php 
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>